﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public abstract class Decorater : Character
{
    private Character character;

    public static Dictionary<int, Special> specialFunction = new Dictionary<int, Special>();

    public Decorater(Character _character)
    {
        character = _character;
    }

    public override int Attack()
    {
        return character.Attack();
    }
    public override Dictionary<int, Special> GetSpecialFunction(Special special)
    {
        specialFunction.Add((int)special, special);
        //Debug.Log((int)special);
        return specialFunction;
    }

    public override void UpdateQuality(int num)
    {
        Debug.Log(num);
    }
}

public enum Special
{ 
    ThreeTimeOneCrit = 0, //第三次攻击必定暴击，默认暴击伤害为10%
}
